package Pojo;

import java.util.Objects;

public class Pay {
    private String out_trade_no;//商户订单号
    private String scene;//支付场景，付款码支付场景固定为 bar_code
    private String auth_code;//用户付款码
    private String subject;//商品的标题/交易标题/订单标题/订单关键字等。不可使用特殊字符，如 /,=,& 等。
    private String store_id;//商家门店编号
    private String total_amount;//订单金额
    private String timeout_express;//交易超时时间
    private String Body;//订单描述


    public Pay() {
    }

    @Override
    public String toString() {
        return "Pay{" +
                "out_trade_no='" + out_trade_no + '\'' +
                ", scene='" + scene + '\'' +
                ", auth_code='" + auth_code + '\'' +
                ", subject='" + subject + '\'' +
                ", store_id='" + store_id + '\'' +
                ", total_amount='" + total_amount + '\'' +
                ", timeout_express='" + timeout_express + '\'' +
                ", Body='" + Body + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Pay pay = (Pay) o;
        return Objects.equals(out_trade_no, pay.out_trade_no) &&
                Objects.equals(scene, pay.scene) &&
                Objects.equals(auth_code, pay.auth_code) &&
                Objects.equals(subject, pay.subject) &&
                Objects.equals(store_id, pay.store_id) &&
                Objects.equals(total_amount, pay.total_amount) &&
                Objects.equals(timeout_express, pay.timeout_express) &&
                Objects.equals(Body, pay.Body);
    }

    @Override
    public int hashCode() {
        return Objects.hash(out_trade_no, scene, auth_code, subject, store_id, total_amount, timeout_express, Body);
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public String getAuth_code() {
        return auth_code;
    }

    public void setAuth_code(String auth_code) {
        this.auth_code = auth_code;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getStore_id() {
        return store_id;
    }

    public void setStore_id(String store_id) {
        this.store_id = store_id;
    }

    public String getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(String total_amount) {
        this.total_amount = total_amount;
    }

    public String getTimeout_express() {
        return timeout_express;
    }

    public void setTimeout_express(String timeout_express) {
        this.timeout_express = timeout_express;
    }

    public String getBody() {
        return Body;
    }

    public void setBody(String body) {
        Body = body;
    }

    public Pay(String out_trade_no, String scene, String auth_code, String subject, String store_id, String total_amount, String timeout_express, String body) {
        this.out_trade_no = out_trade_no;
        this.scene = scene;
        this.auth_code = auth_code;
        this.subject = subject;
        this.store_id = store_id;
        this.total_amount = total_amount;
        this.timeout_express = timeout_express;
        Body = body;
    }
}
